/**
 * ProjModel.java
 *
 *
 *
 * @author HongKai Guo
 * @version 1.00 2011/4/5
 */

public class ProjModel {
    //declare variables
    private int gridSize = 12;
    private int horLane = 0;
    private int verLane = 0;
    private int middleHor;
    private int middleVer;
    private boolean LightHor = true;
    private boolean LightVer = false;

    //constructor

    /**
     * constructor
     */
    public ProjModel(){
         middleHor = (gridSize/2)-1;
         middleVer = (gridSize/2)-2;
    }

    //getter

    /**
     * get Grid Size
     * @return grid size
     */
    public int getGridSize(){
        return gridSize;
    }

    /**
     * get Horizontal Lane
     * @return horLane
     */
    public int getHorLane(){
        return horLane;
    }

    /**
     * get Vertical Lane
     * @return verLane
     */
    public int getVerLane(){
        return verLane;
    }

    /**
     * get middle Horizontal
     * @return middleHor
     */
    public int getMiddleHor(){
        return middleHor;
    }

    /**
     * get middle Vertical
     * @return middleVer
     */
    public int getMiddleVer(){
        return middleVer;
    }

    /**
     * get Horizontal Light
     * @return Lighthor
     */
    public boolean getLightHor(){
        return LightHor;
    }

    /**
     * get Vertical Light
     * @return LightVer
     */
    public boolean getLightVer(){
        return LightVer;
    }

    //setter

    /**
     * set Grid size
     * @param localGridSize pass in gridSize
     */
    public void setGridSize(int localGridSize){
       gridSize = localGridSize;
    }

    /**
     * set Horizontal Lane
     * @param localHorLane pass in HorLane
     */
    public void setHorLane(int localHorLane){
        horLane = localHorLane;
    }

    /**
     * set Vertical Lane
     * @param localVerLane pass in VerLane
     */
    public void setVerLane(int localVerLane){
        verLane = localVerLane;
    }

    /**
     * set Light Horizontal
     * @param localLightHor pass in Light Horizontal
     */
    public void setLightHor(boolean localLightHor){
        LightHor = localLightHor;
    }

    /**
     * set Light Vertical
     * @param localLightVer pass in Light Vertical
     */
    public void setLightVer(boolean localLightVer){
        LightVer = localLightVer;
    }

}
